/**
 * Created by Administrator on 2015/12/23.
 */

var dynamicLoading = {
    css: function(path){
        if(!path || path.length === 0){
            throw new Error('argument "path" is required !');
        }
        var head = document.getElementsByTagName('head')[0];
        var link = document.createElement('link');
        link.href = path;
        link.rel = 'stylesheet';
        link.type = 'text/css';
        head.appendChild(link);
    },
    js: function(path){
        if(!path || path.length === 0){
            throw new Error('argument "path" is required !');
        }
        var head = document.getElementsByTagName('head')[0];
        var script = document.createElement('script');
        script.src = path;
        script.type = 'text/javascript';
        head.appendChild(script);
    }
};


    var Ww = $(window).width(),
        WH = $(window).height();

    $("#swiper_css").remove();
    $("#swiper_commonly").remove();
    $("#swiper_js").remove();



$(function(){
    dynamicLoading.css("/html/swiper/css/idangerous.swiper.css");
    dynamicLoading.js("/html/swiper/js/idangerous.swiper.js");
    dynamicLoading.js("/html/js/idswiper.js");

});








